<h1>Listing comments</h1>

<table>

  <tr>
<% @comentas.each do |comenta| %>
				</div>
					<div class="post">
						<%ev =comenta.events_id%>
						<% evento = Event.find(:first, :conditions => params[ev])  %>
						<h2 class="title">Evento: <%=h evento.name %></a></h2>
						<%us =comenta.users_id%>
						<% usuario = User.find(:first, :conditions => params[us])  %>
						<p class="meta">Posted by <%=h usuario.name %>    <%=h comenta.dates %></p>
						
						<div class="entry">
							<p><%=h comenta.comment %></p>
							
						</div>
					</div>
					<div style="clear: both;">&nbsp;</div>
				</div>
		
							
				
  </tr>
<% end %>
</table>

<br />

<%= link_to 'Regresar', events_path %>